package xpu.ctrl.docker.dataobject;

import lombok.Data;
import org.bson.types.Binary;
import java.util.Date;

@Data
public class ImageFile {
    private String id;
    private String name; // 文件名称
    private long size;
    private Date uploadDate;
    private String md5;
    private Binary content; // 文件内容

    public ImageFile(String name, long size, Binary content) {
        this.name = name;
        this.size = size;
        this.uploadDate = new Date();
        this.content = content;
    }
}